<?php
/**
 * 数据字典
 * @author maniac
 */
namespace app\manage\controller;

use app\facade\Dictionary AS DictionaryFacade;
use app\facade\UserLogs;

class Dictionary extends Base
{
    /**
     * 导出数据字典
     */
    public function save()
    {
        if (request()->isPost()) {
            UserLogs::insertLog(['title' => '导出数据字典']);
            DictionaryFacade::export();
        } else {
            return $this->fetch();
        }
    }
}
